import 'package:flutter/material.dart';

class RegisterPage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('RegisterPage')),
      body: ListView(
        children: [
          Text('RegisterPage'),
          RaisedButton(
            child: Text('跳转到register2页面'),
            onPressed: (){
              Navigator.pushNamed(context, '/register2');
//            Navigator.of(context).pushReplacementNamed('/register2');
            },
          )
        ],
      ),
    );
  }

}

